package com.micromall.service;

import com.micromall.model.BusiOrder;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Dante Fung
 * @since 2017-07-26
 */
public interface IBusiOrderService extends IService<BusiOrder> {

    /**
     * 根据购物车ID生成订单及订单明细
     * @param cartId
     * @param params
     */
    String genOrderByCartId(String cartId, Map<String, String> params);

    /**
     * 根据产品ID生成订单及订单明细
     * @param productId
     * @param params
     * @return
     */
    String genOrderByProductId(String productId, Map<String, String> params);

	
}
